﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Entitys.Sinv
{
    /// <summary>
    /// 销售订单
    /// </summary>
    public class Sinv_Sale_Order
    {
        public int Sale_order_id { get; set; }//销售订单id
        public string Sale_order_name { get; set; }//销售订单名称
        public string Sale_order_code { get; set; }//销售订单编号
        public string Customer_name { get; set; }//客户名称
        public string Customer_code { get; set; }//客户编号
        public string Contacts_name { get; set; }//客户联系人名称
        public string Contacts_phone { get; set; }//客户联系人电话
        public DateTime Sale_order_sign_time { get; set; }//订单签单日期
        public DateTime Sale_order_deliver_time { get; set; }//订单交付日期
        public decimal Sale_order_total_qty { get; set; }//销售总数量
        public decimal Sale_order_total_price { get; set; }//销售总金额
        public decimal Sale_order_total_proce { get; set; }//销售成本总额
        public int Sale_order_rep_id { get; set; }//销售订单负责人
        public int Sale_order_dept_id { get; set; }//销售订单负责人部门
        public int Sale_order_status { get; set; }//出库状态
        public string? Sale_order_audit_by { get; set; }//销售订单审核人
        public DateTime? Sale_order_audit_time { get; set; }//销售订单审核时间
        public string? Sale_order_audit_opinion { get; set; }//销售订单审核意见
        public char Sale_order_audit_status { get; set; }//审核状态
        public char? Del_flag { get; set; }//删除状态
        public string? Create_by { get; set; }//创建人
        public DateTime? Create_time { get; set; }//创建时间
        public string? Update_by { get; set; }//修改人
        public DateTime? Update_time { get; set; }//修改时间
        // 导航属性：明细
        public ICollection<Sinv_Sale_Order_Details> Details { get; set; }
    }
}
